<?php
/**------------------------------------------------------------------------
 * @Author:      lixw
 * @DateTime:    2017-01-13 15:39:21
 * @Description: Description
 * Copyright (c) 2016 All rights reserved.
 *------------------------------------------------------------------------*/
namespace app\wap\controller;

class Help extends Base{

	public function help(){
    	// 跳转至问答首页
    	$this->add_step('使用帮助');
    	return $this->view();
    }

    public function index(){
    	// 跳转至问答首页
    	$this->add_step('使用帮助');
    	$module = $this->_get('module');
    	$module = $module ? $module : 'help';
        $where['module']    = $module;
        $where['status']    = 1;
        $where['is_delete'] = 0;
    	$list = model("Article")->where($where)->order("order_id")->select();

    	$this->assign('list', $list);
		return $this->view();
    }

    public function detail(){
    	// 跳转至问答首页

    	$article_id = $this->_get('article_id', '您的操作有误');

    	$info = model("Article")->where(['article_id' => $article_id])->find();

    	$this->add_step($info['title']);

    	$this->assign('info', $info);
		return $this->view();
    }
}